package main

import (
	"fruit/actor/fruit"
	"fruit/lib"
	"fruit/test"
	"fruit/tools/pprof"
	_ "net/http/pprof"
	"runtime"
	"time"
)

func main() {
	test.Start()
	// return

	pprof.Start()

	fruit := fruit.GetFruitActor()
	lib.Start(fruit)
	Loop()
	lib.Stop()
}

func Loop() {
	for {
		time.Sleep(2 * time.Second)
		runtime.GC()
		// fmt.Println("GC")
	}
}
